package com.ecahack.busstop.data;

import java.io.Serializable;


public class BusStop implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -7582408294726933851L;

	private long id;

	private String address;

	private String description;

	private float distance;

	private String buses;

	private String locationId;

	private double latitude;

	private double longitude;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public float getDistance() {
		return distance;
	}

	public void setDistance(float distance) {
		this.distance = distance;
	}

	public String getLocationId() {
		return locationId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getBuses() {
		return buses;
	}

	public void setBuses(String buses) {
		this.buses = buses;
	}

	@Override
	public String toString() {
		return description;
	}

	@Override
	public boolean equals(Object o) {
		if (!(o instanceof BusStop))
			return false;
		return id == (((BusStop) o).getId());
	}
}
